#!/usr/bin/env python3
import argparse
from ilogger import do_server


if __name__ == '__main__':
    parser = argparse.ArgumentParser("welcome use visual analysis logger-system...")
    parser.add_argument('-d', '--log_dir', default='./logs', help='the log file\'s path')
    parser.add_argument('-l', '--log_level', default='debug', help='the log mode')
    parser.add_argument('-s', '--host', default='localhost', help='the logger server host')
    parser.add_argument('-p', '--port', type=int, default=9020, help='the logger server port')

    args = parser.parse_args()

    do_server(args.log_dir, args.log_level, args.host, args.port)